package com.xx.wars.util;

import java.util.ArrayList;
import java.util.List;

import com.xx.framework.Input;
import com.xx.framework.Input.TouchEvent;
import com.xx.wars.node.SpriteNode;

public class CloneUtil {
	public static ArrayList<TouchEvent> clonEvents(List<TouchEvent> list){
		
		ArrayList<TouchEvent> clonEvents = 
				(ArrayList<TouchEvent>) ((ArrayList<Input.TouchEvent>) list)
				.clone();
		
		return clonEvents;
	}
	
	public static ArrayList<SpriteNode> clonSpriteNode(List<SpriteNode> list){
		
		ArrayList<SpriteNode> nodes = 
				(ArrayList<SpriteNode>)((ArrayList<SpriteNode>) list).clone();
		
		return nodes;
	}
}
